/**
 * 
 */
package com.hera.base.util;

import java.io.Serializable;
import java.util.Date;

/**
 * @author cmontes
 *
 */
public class WrapperDate implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private Date value;

	public WrapperDate(){
		value = new Date();
	}
	
	public WrapperDate(Long longvalue){
		value = new Date(longvalue);
	}
	
	public WrapperDate(Date datevalue){
		value = datevalue;
	}
	
	@Override
	public int hashCode() {		
		return value.hashCode();
	}


	@Override
	public boolean equals(Object obj) {		
		return value.equals(obj);
	}


	@Override
	public String toString() {
		return value.toString();
	}


	public Date getValue() {
		return value;
	}


	public void setValue(Date value) {
		this.value = value;
	}
	
	

}
